package com.ruoyi.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.report.mapper.TRptOrderMapper;
import com.ruoyi.report.domain.TRptOrder;
import com.ruoyi.report.service.ITRptOrderService;

/**
 * 报修单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class TRptOrderServiceImpl implements ITRptOrderService 
{
    @Autowired
    private TRptOrderMapper tRptOrderMapper;

    /**
     * 查询报修单
     * 
     * @param reportNo 报修单主键
     * @return 报修单
     */
    @Override
    public TRptOrder selectTRptOrderByReportNo(String reportNo)
    {
        return tRptOrderMapper.selectTRptOrderByReportNo(reportNo);
    }

    /**
     * 查询报修单列表
     * 
     * @param tRptOrder 报修单
     * @return 报修单
     */
    @Override
    public List<TRptOrder> selectTRptOrderList(TRptOrder tRptOrder)
    {
        return tRptOrderMapper.selectTRptOrderList(tRptOrder);
    }

    /**
     * 新增报修单
     * 
     * @param tRptOrder 报修单
     * @return 结果
     */
    @Override
    public int insertTRptOrder(TRptOrder tRptOrder)
    {
        return tRptOrderMapper.insertTRptOrder(tRptOrder);
    }

    /**
     * 修改报修单
     * 
     * @param tRptOrder 报修单
     * @return 结果
     */
    @Override
    public int updateTRptOrder(TRptOrder tRptOrder)
    {
        return tRptOrderMapper.updateTRptOrder(tRptOrder);
    }

    /**
     * 批量删除报修单
     * 
     * @param reportNos 需要删除的报修单主键集合
     * @return 结果
     */
    @Override
    public int deleteTRptOrderByReportNos(String[] reportNos)
    {
        return tRptOrderMapper.deleteTRptOrderByReportNos(reportNos);
    }

    /**
     * 删除报修单信息
     * 
     * @param reportNo 报修单主键
     * @return 结果
     */
    @Override
    public int deleteTRptOrderByReportNo(String reportNo)
    {
        return tRptOrderMapper.deleteTRptOrderByReportNo(reportNo);
    }
}